// 风险清单
import request from "@/utils/request.js";


//新增
export function addRiskOrder (data){
  return request({
    url: `/system/riskTemplate`,
    method: 'post',
    data
  })
}
//修改
export function editRiskOrder (data){
  return request({
    url: `/system/riskTemplate`,
    method: 'put',
    data
  })
}

//导出
export function exportRiskOrder (data){
  return request({
    url: `/system/riskTemplate/export`,
    method: 'post',
    responseType:"blob",
    data
  })
}
//查询
export function listRiskOrder (params){
  return request({
    url: `/system/riskTemplate/list`,
    method: 'get',
    params
  })
}

//删除
export function deleteRiskOrder (ids){
  return request({
    url: `/system/riskTemplate/${ids}`,
    method: 'delete',
  })
}
//详情
export function detailRiskOrder (id){
  return request({
    url: `/system/riskTemplate/${id}`,
    method: 'get',
  })
}
